﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="PlugNT.App.Shop.Web.Pre_OrderList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>评论列表</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/jquery/ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $("#iptSearch").click(function () {
            var pstate = $("#ddlPState").val();
            var estate = $("#ddlEState").val();
            var gstate = $("#ddlGState").val();
            var ostate = $("#ddlOState").val();
            var orderno = $("#txtOrderNo").val();
            var sonline = $("#sonline").attr("checked") ? "1" : "-1";
            document.location.href = "?pstate=" + pstate + "&estate=" + estate + "&gstate=" + gstate + "&ostate=" + ostate +
                 "&sonline=" + sonline + "&orderno=" + orderno;
        });
        $("#chkAll").click(function () {
            $("span.ck_ID_list input").attr("checked", ($(this).attr("checked")==true));
        });
    });
    function PrintOrder(id) {
        OpenDialog("打印订单", "./OrderPrint.aspx?id=" + id);
    }
    function OpenDialog(txt, url) {
        $("#dialogFrame").remove();
        var str = "<div id='dialogFrame'><iframe src='" + url + "' frameborder='0' marginwidth='0' marginheight='0' width='850' height='600'></iframe></div>";
        $("body").append(str);
        $("#dialogFrame").dialog({
            title: txt,
            autoOpen: true,
            modal: true,
            width: 850,
            height: 600,
            resizable: true,
            bgiframe: true
        });
    }
    function IsNumber(str) {
        if (/^\d+$/.test(str)) { return true; } else { return false; }
    }
</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>插件&nbsp;&gt;&nbsp;商城管理&nbsp;&gt;&nbsp;订单列表</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Config.aspx">商城设置</a></label> | </td>
                        <td><label><a href="./OrderList.aspx">订单列表</a></label> | </td>
                        <td><label><a href="./OrderDownLoad.aspx">订单下载</a></label> | </td>
                        <td><label><a href="../Article/Admin.aspx">商品管理</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>

    
<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">
          

    <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDE9FF">
     <tr>
        <td bgcolor="#ecf5ff">
            <table  width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td align="left" style="width:20px;">
                    <img src="../images/cms-ico2.gif" width="16" height="16" align="absmiddle">
                  </td>
                 <td align="left" valign="middle"> 筛选：
                    <asp:DropDownList ID="ddlPState" runat="server">
                        <asp:ListItem Text="--收款状态--" Value="-1"></asp:ListItem>
                        <asp:ListItem Text="未付款" Value="0"></asp:ListItem>                
                        <asp:ListItem Text="已付款" Value="1"></asp:ListItem>
                        <asp:ListItem Text="部分付款" Value="2"></asp:ListItem>
                        <asp:ListItem Text="已退款" Value="3"></asp:ListItem>
                        <asp:ListItem Text="部分退款" Value="4"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlGState" runat="server">
                        <asp:ListItem Text="--发货状态--" Value="-1"></asp:ListItem>
                        <asp:ListItem Text="未发货" Value="0"></asp:ListItem>                
                        <asp:ListItem Text="已发货" Value="1"></asp:ListItem>
                        <asp:ListItem Text="已退货" Value="2"></asp:ListItem>
                        <asp:ListItem Text="无需配送" Value="3"></asp:ListItem>
                    </asp:DropDownList>            
                    <asp:DropDownList ID="ddlEState" runat="server">
                        <asp:ListItem Text="--申请状态--" Value="-1"></asp:ListItem>
                        <asp:ListItem Text="正常状态" Value="0"></asp:ListItem>                
                        <asp:ListItem Text="申请退款" Value="1"></asp:ListItem>
                        <asp:ListItem Text="申请退货" Value="2"></asp:ListItem>
                    </asp:DropDownList> 
                    <asp:DropDownList ID="ddlOState" runat="server">
                        <asp:ListItem Text="--订单状态--" Value="-1"></asp:ListItem>
                        <asp:ListItem Text="未确认" Value="0"></asp:ListItem>                
                        <asp:ListItem Text="已完成" Value="1"></asp:ListItem>
                        <asp:ListItem Text="已作废" Value="2"></asp:ListItem>
                    </asp:DropDownList> 
                    订单号:
                    <asp:TextBox ID="txtOrderNo" runat="server" Width="90px"></asp:TextBox>
                 </td>
                 <td align="right">
                    <table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="80px" align="center">
                          <label for="sonline" style="cursor:hand;"><input type="checkbox" id="sonline" name="sonline" <% =sonline=="1"?"checked=checked":"" %> />线上</label>
                        </td>
                        <td align="right" valign="middle" width="50"> 
                          <input id="iptSearch" type="button" value=" 搜索 " class="bt" />
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table>
        </td>
     </tr>
    </table>
    

          
       <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
        <tr>
          <td width="23" height="25" nowrap bgcolor="#DDE9FF"></td>
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">订单号</span></td>  
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">用户</span></td>
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">手续费</span></td> 
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">已收金额</span></td> 
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">收款状态</span></td> 
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">发货状态</span></td> 
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">申请状态</span></td>   
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">订单状态</span></td>         
          <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">操作</span></td>
        </tr>
        
        <asp:Repeater ID="rptAdmin" runat="server" OnItemDataBound="rptAdmin_ItemDataBound">
          <ItemTemplate>
            <tr align="center">
              <td height="25" nowrap bgcolor="#F4FBFF"><asp:CheckBox ID="ID_list" CssClass="ck_ID_list" runat="server" /></td>
              <td nowrap bgcolor="#F4FBFF" style="width:120px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><%#Eval("no")%></td>              
              <td nowrap  bgcolor="#F4FBFF" style="width:120px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><%#Eval("email")%>(<%#Eval("username")%>)</td>
              <td align="center" nowrap bgcolor="#F4FBFF"><%#Eval("money_fare").ToString()%></td> 
              <td align="center" nowrap bgcolor="#F4FBFF"><%#Eval("money").ToString()%></td> 
              <td align="center" nowrap bgcolor="#F4FBFF">
                <asp:Literal ID="litPState" runat="server"></asp:Literal>
              </td> 
              <td align="center" nowrap bgcolor="#F4FBFF">
                <asp:Literal ID="litGState" runat="server"></asp:Literal>
              </td> 
              <td align="center" nowrap bgcolor="#F4FBFF">
                <asp:Literal ID="litEState" runat="server"></asp:Literal>
              </td>         
              <td align="center" nowrap bgcolor="#F4FBFF">
                <asp:Literal ID="litOState" runat="server"></asp:Literal>
              </td>   
              <td align="center" nowrap bgcolor="#F4FBFF">
                <asp:Literal ID="litOperate" runat="server"></asp:Literal>
              </td> 
            </tr>
          </ItemTemplate>
        </asp:Repeater>
        
        <tr>
          <td height="25" colspan="10" bgcolor="#F4FBFF">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <input name="chkAll" type="checkbox" id="chkAll" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                        <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                          
                    </td>
                    <td class="pager">
                        <asp:Literal ID="litPager" runat="server"></asp:Literal>
                    </td>
                </tr>
            </table>
          </td>
          </tr>
      </table>
 

</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>